home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2007 February
/
PCWorld_2007-02_cd.bin
/
domacnost a kancelar
/
pspad
/
pspad452inst_cz.exe
/
{app}
/
Template
/
Singleton.cs
< prev
next >
Wrap
Text File
|
2006-02-20
|
559b
|
29 lines
using System;
using System.Collections.Generic;
using System.Text;
namespace GoogleRequester
{
public class Singleton
{
private static Singleton instance = null;
private static object lockObject = null;
private Singleton()
{
}
public static Singleton GetInstance()
{
lock (lockObject)
{
if (instance != null)
instance = new Singleton();
return instance;
}
}
}
}